package com.xhwl.centiotdata.action.security;

import com.xhwl.common.dto.cent.security.PerimeterActionDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @Author: yanyixiong
 * @Description:
 * @Date: create in 9:42 2022/1/17
 */
@RestController
public interface ISecurityAction {

    /**
     * 电子围栏设防/撤防操作
     * @param perimeterActionDTO 操作实体类
     * @return 是否成功
     */
    @PostMapping(value = "/security-action/perimeter-action")
    Map<Boolean, List<String>> perimeterAction(@RequestPart("perimeterActionDTO") PerimeterActionDTO perimeterActionDTO);

}
